package system

import "github.com/slclub/go-tips"

type UserGpt struct {
	Account  string
	Password string
	ApiKey   string
}

func (self *UserGpt) ConvFromMap(m map[string]any) {
	if val, ok := m["Account"]; ok {
		self.Account = tips.String(val)
	}
	if val, ok := m["Password"]; ok {
		self.Password = tips.String(val)
	}
	if val, ok := m["ApiKey"]; ok {
		self.ApiKey = tips.String(val)
	}
}
